<h1>Listing student_plan_enrollments</h1>

<table>
  <tr>
    <th>Student</th>
    <th>Educational plan</th>
    <th>Academic term</th>
  </tr>

<% @student_plan_enrollments.each do |student_plan_enrollment| %>
  <tr>
    <td><%=h student_plan_enrollment.student %></td>
    <td><%=h student_plan_enrollment.educational_plan %></td>
    <td><%=h student_plan_enrollment.academic_term %></td>
    <td><%= link_to 'Show', student_plan_enrollment %></td>
    <td><%= link_to 'Edit', edit_student_plan_enrollment_path(student_plan_enrollment) %></td>
    <td><%= link_to 'Destroy', student_plan_enrollment, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New student_plan_enrollment', new_student_plan_enrollment_path %>